#!/bin/sh
# 3DM startup script
set -e

HOME=~/workspace/MergeInteractiveDemoManyByOne
JAVA=java
XALAN=xalan
XSL=hideInlineTags.xsl

for arg
do
	case "$arg" in
	*.*) OUT=withoutInlineTags""$(basename $arg);;
	esac
	
	case "$arg" in
	*.*) $XALAN -in $arg -xsl $XSL -out $OUT;;
	esac

	case "$arg" in
	*.*) args=$args" "$OUT;;
	*) args=$args" "$arg;;
	esac

done

GETOPT=$HOME/lib/java-getopt/java-getopt-1.0.13.jar
BIN=$HOME/bin
#echo $JAVA -cp $BIN:$GETOPT tdm.tool.TreeDiffMerge ${1+"$@"}
#$JAVA -cp $BIN:$GETOPT tdm.tool.TreeDiffMerge ${1+"$@"}
echo $JAVA -cp $BIN:$GETOPT tdm.tool.TreeDiffMerge $args
$JAVA -cp $BIN:$GETOPT tdm.tool.TreeDiffMerge $args
